home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / tctutor2 / while.c < prev    next >
C/C++ Source or Header  |  1987-07-04  |  266b  |  14 lines

  1.                                          /* Chapter 3 - Program 1 */
  2. /* This is an example of a "while" loop */
  3.  
  4. main()
  5. {
  6. int count;
  7.  
  8.    count = 0;
  9.    while (count < 6) {
  10.       printf("The value of count is %d\n",count);
  11.       count = count + 1;
  12.    }
  13. }
  14.